package com.study.app.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.study.common.core.validate.AddGroup;
import com.study.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * App系统通知业务对象 app_system_notifications
 *
 * @author magicyo
 * @date 2023-11-30
 */

@Data
public class AppSystemNotificationsBo  {

    /**
     * 系统消息ID
     */
    @NotNull(message = "系统消息ID不能为空", groups = { EditGroup.class })
    private Long notificationId;

    /**
     * 通知接受ID，用户ID
     */
    @NotNull(message = "通知接受ID，用户ID不能为空", groups = { AddGroup.class })
    private Long recipientId;
    /**
     * 通知接受车辆，用户车辆
     */
    @NotNull(message = "通知接受车辆，用户车辆不能为空", groups = { AddGroup.class })
    private String vehicleCode;
    /**
     * 通知标题
     */
    @NotBlank(message = "通知标题不能为空", groups = { AddGroup.class})
    private String notificationTitle;

    /**
     * 通知内容
     */
    @NotBlank(message = "通知内容不能为空", groups = { AddGroup.class})
    private String notificationContent;

    /**
     * 发送日期
     */
    @NotNull(message = "发送日期不能为空", groups = { AddGroup.class })
    private LocalDateTime sendTime;

    /**
     * 阅读状态：0否，1是
     */
    @NotNull(message = "阅读状态：0否，1是不能为空", groups = { AddGroup.class})
    private Long isRead;
    /**
     * 消息展示形式：0不提示1弹框提示2消息蒙版提示
     */
    private Integer isType;
    /**
     * 身份类型：0分享人1受邀人
     */
    private Integer identityType;

}

